package Java8_27;

public class Car {
    String brand;
    String color;
    String number;

    public Car(String brand, String color, String number){
        this.brand=brand;
        this.color=color;
        this.number=number;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public void setNumber(String number) {
        this.number = number;
    }
    public String getBrand() {
        return brand;
    }
    public String getColor() {
        return color;
    }
    public String getNumber() {
        return number;
    }

    public void start(){
        System.out.println("启动车辆");
    }

    public void speed(){
        System.out.println("加速");
    }

    public void down(){
        System.out.println("刹车");
    }
}
